package com.yswy.domain.vo.gld.filter;

import com.yswy.domain.vo.dto.BaseFilter;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.StringUtils;

@Data
@EqualsAndHashCode(callSuper = true)
public class UserPageFilter extends BaseFilter {
    @ApiModelProperty("用户名称|电话 关键字查询")
    private String keyWord;

    @ApiModelProperty("用户 名称")
    private String userName;
    @ApiModelProperty("用户 电话")
    private String userPhone;

    @ApiModelProperty("冻结状态 true:冻结 false:不冻结")
    private Boolean freezingSatus;

    public String getKeyWord() {
        return StringUtils.isNotEmpty(keyWord) ? keyWord.trim() : keyWord;
    }
}
